<?php
namespace app\common\model\reimbursement;

use app\common\model\BaseModel;

class ExpenseOperationLog extends BaseModel
{
    protected $name = 'expense_operation_log';
    
    // 自动时间戳
    protected $autoWriteTimestamp = true;
    protected $createTime = 'create_time';
    protected $updateTime = 'update_time';
    protected $deleteTime = 'delete_time';
    
    // 允许写入字段
    protected $allowField = [
        'expense_id',
        'operator_id',
        'operator_name',
        'operation_type',
        'operation_content'
    ];

    // 类型转换
    protected $type = [
        'id' => 'integer',
        'expense_id' => 'integer',
        'operator_id' => 'integer',
        'operation_type' => 'integer'
    ];
} 